<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖家-修改个人信息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>


 
</head>
<body>
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
<link href="<?php echo $this->_webroot('/user/css/shoprequest.css'); ?>" rel="stylesheet" type="text/css" />   
    <div class="main-right main_right">
	

            <div class="cont">

		<div class="title_uc">
			<h3><span class="tr_op"><a href="<?php echo $this->_url('usershop/shopmyorder/?');?>" >收到的订单</a>&nbsp;&nbsp;</span>订单详情</h3>
			<div class="clear" style="height:5px;"></div>
			<hr style="border-color: #CCCCCC;border-style: solid;border-width: 1px 0 0;clear: both;height: 0;"/>
		</div>
		<div class="clear"></div>		
		<div id="reg_step">
			<ol>
				<?php  if($info['order_status']==0) {?>
				<li class="current"><strong>1、买家下订单</strong></li>
				<li class=""><span>2、买家付款</span></li>
				<li class=""><span>3、确认发货</span></li>
				<li class=""><span>4、买家确认收货</span></li>
				<li class=""><span>5、订单已取消</span></li>
				<?php  } elseif($info['order_status']==3) {?>
				<li class=""><strong class="first">1、买家下订单</strong></li>
				<li class=""><span>2、买家付款</span></li>
				<li class=""><span>3、确认发货</span></li>
				<li class=""><span>4、买家确认收货</span></li>
				<li class="current"><span>5、完成交易</span></li>
				<?php  } elseif($info['transport_status']==1) {?>
				<li class=""><strong class="first">1、买家下订单</strong></li>
				<li class=""><span>2、买家付款</span></li>
				<li class="current"><span>3、确认发货</span></li>
				<li class=""><span>4、买家确认收货</span></li>
				<li class=""><span>5、完成交易</span></li>
				<?php  } elseif($info['pay_status']==1) {?>
				<li class=""><strong class="first">1、买家下订单</strong></li>
				<li class="current"><span>2、买家付款</span></li>
				<li class=""><span>3、确认发货</span></li>
				<li class=""><span>4、买家确认收货</span></li>
				<li class=""><span>5、完成交易</span></li>
				<?php  } else  {?>
				<li class="current"><strong class="first">1、买家下订单</strong></li>
				<li class=""><span>2、买家付款</span></li>
				<li class=""><span>3、确认发货</span></li>
				<li class=""><span>4、买家确认收货</span></li>
				<li class=""><span>5、完成交易</span></li>
				<?php }?>
			</ol>
		</div>
		<div class="clear"></div>
		<table width="100%" border="0" cellspacing="0">
			<!--	<tr>
				<th style="background:#FFF2E6; color:#F67A06;" colspan="4">&nbsp;&nbsp;商品信息</th>
			</tr>-->

			<tr>
				<th  width="320">商品名称</th>
				<th width="115">商品价格</th>
				<th width="90">购买数量</th>
				<th width="100">运费</th>
			</tr>
			<?php $num =count($info['order_goods']); foreach($info['order_goods'] as $k=>$v){?>
			<tr>
				<td><a href="<?php echo $this->_url('shop/productshow/'.$v['og']['goods_id']);?>" target="_blank" ><?php echo  $v['og']['goods_name'];?></a></td>
				<td style="text-align:center;"><?php echo  $v['og']['goods_price'];?>元</td>
				<td style="text-align:center;"><?php echo  $v['og']['order_num'];?></td>
				<?php if($k==0){?>
				<td class="border_l " style="text-align:center;"  rowspan="<?php echo $num;?>"><?php echo  $info['transport_price'];?>元</td>
				<?php }?> </tr>
			<?php }?>
			<tr>
				<td class="border_l" colspan="4">&nbsp;&nbsp;这次购物需要支付的总价:<span><?php echo  $info['order_value'];?></span>元（商品总价格：<?php echo  $info['order_amount'];?>元,运费：<?php echo  $info['transport_price'];?>元）
					<?php if($info['order_status']==1 && $info['pay_status']==0) {?>
					<form action="<?php echo $this->_url('usershop/orderpriceedit/');?>" method="post" onsubmit="return checkForm();">
						&nbsp;&nbsp;修改商品总价格<input id="price" name="price" value="<?php echo  $info['order_amount'];?>" style="width:70px;" /> 
						<input type="hidden" name="order_id" value="<?php echo  $order_id;?>" /> 
						<input type="submit" name="btn" value="修改价格" />
					</form>
					<?php }?> </td>
			</tr>
		</table>
        <div class="clear"></div>
		
		
		<h3 class="ttlm_02">收货信息</h3>
		<table  class="form_table_02" width="100%" border="0" cellspacing="0">
			
			<tr>
				<th  width="100px">联系人:</th>
				<td><?php echo  $info['consignee'];?></td>
			</tr>
			<tr>
				<th>详细地址: </th>
				<td> <?php echo  $info['mobile'];?> , <?php echo  $info['telphone'];?>  , <?php echo  $areas[$info['province']];?> <?php echo  $areas[$info['city']];?> <?php echo  $areas[$info['district']];?> , <?php echo  $info['address'];?> , 邮编:<?php echo  $info['zipcode'];?></td>
			</tr>
			<tr>
				<th>手机:</th>
				<td><?php echo  $info['mobile'];?></td>
			</tr>
			<tr>
				<th>电话:</th>
				<td><?php echo  $info['telphone'];?></td>
			</tr>
			<tr>
				<th>邮箱:</th>
				<td><?php echo  $info['email'];?></td>
			</tr>
			<tr>
				<th>所在地区:</th>
				<td><?php echo  $areas[$info['province']];?> <?php echo  $areas[$info['city']];?> <?php echo  $areas[$info['district']];?></td>
			</tr>
			<tr>
				<th>详细地址:</th>
				<td><?php echo  $info['address'];?></td>
			</tr>
			<tr>
				<th>邮政编码:</th>
				<td><?php echo  $info['zipcode'];?></td>
			</tr>
		</table>
		<div class="clear"></div>
		<h3 class="ttlm_02">订单详情</h3>
		<table  class="form_table_02" width="100%" border="0" cellspacing="0">
			<tr>
				<th>订单附言:</th>
				<td><?php echo  $info['message'];?></td>
			</tr>
			<tr>
				<th>支付留言:</th>
				<td><?php echo  $info['pay_message'];?></td>
			</tr>
			<tr>
				<th>支付订单号:</th>
				<td><?php echo  $info['trade_no'];?></td>
			</tr>
			<tr>
				<th>下订单时间:</th>
				<td><?php echo  $info['order_time'];?></td>
			</tr>
			<tr>
				<th>支付时间:</th>
				<td><?php echo  $info['pay_time'];?></td>
			</tr>
			<tr>
				<th>收货时间:</th>
				<td><?php echo  $info['receive_time'];?></td>
			</tr>
		</table>
<div class="clear"></div>
		<h3 class="ttlm_02">物流信息</h3>
		<table class="form_table_02" width="100%" border="0" cellspacing="0">
			<tr>
				<th width="100">物流信息：</th>
				<td><?php echo  $info['transport_content'];?></td>
			</tr>
		</table>		
		<div class="clear"></div>
		<h3 class="ttlm_02">发货信息</h3>
		<table  class="form_table_02" width="100%" border="0" cellspacing="0">
			<tr>
				<th>物流公司名称:</th>
				<td><?php echo  $info['shipping_name'];?></td>
			</tr>
			<tr>
				<th>物流发货单号:</th>
				<td><?php echo  $info['shipping_no'];?></td>
			</tr>
			<tr>
				<th>发货运输类型:</th>
				<td><?php echo  $info['shipping_type'];?></td>
			</tr>
			<tr>
				<th>发货时间:</th>
				<td><?php echo  $info['shipping_time'];?></td>
			</tr><tr>
				<th>操作：</th>
				<td><span class="tr_op">
					<?php  if($info['order_status']==1 && $info['pay_status']==0) {?>
							<a href="<?php echo $this->_url('usershop/shoporderdel/?');?>&id=<?php echo  $info['id'];?>" onclick="return confirm('要确认该订单吗？');">取消订单</a>
					<?php }?>
					<?php  if($info['transport_status']==0 && $info['order_status']==1 && $info['pay_status']==1) {?>
						<?php  if($payment_info[$info['pay_id']]['pay_code']=='alipay') {?>
							<a href="<?php echo $this->_url('pay/surerecevi/?type=alipay&filename=comput&');?>order_id=<?php echo  $info['id'];?>" target="_blank">确认发货</a>
						<?php  } else {?>
							<a href="<?php echo $this->_url('usershop/shopsurerecevi/?');?>order_id=<?php echo  $info['id'];?>" onclick="javascript:if(confirm('点击确认发货时，请您也要前往您收款所设的支付中介网站进行确认！')){return true;} else {return false;}">确认发货</a>
						<?php }?>
					<?php }?>
					<?php  if($info['transport_status']==0 && $info['order_status']==1 && $info['pay_status']==2) {?>
						<a href="<?php echo $this->_url('usershop/shopbackmoney/?');?>&order_id=<?php echo  $info['id'];?>">退款</a>
					<?php }?>
					<?php  if($info['protect_status']==1 || $info['protect_status']==2) {?>
						<a href="<?php echo $this->_url('usershop/shopprotectrights/?');?>order_id=<?php echo  $info['id'];?>"><font color='red'>查看维权</font></a>
					<?php }?>
					<a href="<?php echo $this->_url('usershop/shoporderview/?');?>order_id=<?php echo  $info['id'];?>" title="查看订单详情">
					查看详情</a>
					<!-- 订单评价 开始 -->
					<?php  if($info['transport_status']==1 && $info['order_status']==3 && $info['seller_reply']==0) {?>
						<a href="<?php echo $this->_url('usershop/shopcreditadd/?');?>order_id=<?php echo  $info['id'];?>&t=seller" >评价</a>
					<?php }else if($info['transport_status']==1 && $info['order_status']==3 && $info['seller_reply']==1){?>
						已评价
					<?php }?>
					<!-- 订单评价 结束 -->
					</span>
				</td>
			</tr>
		</table>

			  
			  
            </div>
	
	

        

    </div>
    <div class="clear"></div>
</div>

<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />

</div>

</body>
</html>